import request from '@/config/axios'

export interface AddVO {
  code?: string
  labUser?: string,
  inNum?: number,
  inTime?: string,
  remark?: string,
}

// 查询项目列表
export const getAddPage = (data: PageParam) => {
  return request.post({url: '/consumable/store/query', data})
}
// 查询项目
export const getAdd = (id: number) => {
  return request.get({url: '/consumable/store/queryById/' + id})
}

// 添加项目
export const addAdd = async (data: AddVO) => {
  return await request.post({url: '/consumable/store/add', data})
}

// 删除项目
export const deleteAdd = async (data: any) => {
  return await request.delete({url: '/consumable/store/delete', data})
}

// 修改项目
export const updateAdd = async (data: AddVO) => {
  return await request.put({url: '/consumable/store/edit', data})
}


